Fixed Assertion Failure- assigned level in onEnter