Fixed a small bug with AlarmManager