Fix alarm manager to set up in the proper time.