fix some cas limit bug