Level ended fix