Bug fix for input time