AlarmManager fixes