Fixed timer issue on iOS