Fix level gen