Fixed error in random locations