fix time struct