Fixed some level bugs