minLevel problem fix