lock the car and make sure the mirror folds torwards the windown. Then unlock the car and have the mirror fold down and if you have to stop it at the correct spot and hold it till the motor stops. Then repeat the process of locking the car and the mirror folding up. Then unlock and see if its corrected. If that doesnt help I dont no what else to say.
I remember when I first got my car it did this and I got it corrected.