Fixing timer bug.