Try to prevent duplicated call of alarmmanager.