fix wrong type of time output