timer causing an error