Fix large integer value error in scheduler