fixed the random position issue