Fixed bug in level module