fix time in animate function