fixed some position generator problems