fix end level updating