Fix timeref type