fix error in level parsing