Fixed bug in Level class.