fix level transitions