Fixed some level logic