Fixed timer bug at startup