fix level gen