fix syntax error in timer