removed bug from alarm setting