fix level bugs