fix random_level