fix for error when h, m, s == 60