fix timer and duration