Fix the minimum and maximum level supported checks