fixed to-hour rounding issue