Fixed bug when TimerTask given non-integer interval values.