Fix type in millisecond check