fix major switch time bug