fixed the flipped levels