fixed bug in level generator