correction of random position