Fix __checkLevel__ bugs