fix level bug