Fix repeating level end