Some bugs fixed inc wrong impl when schedule with alarmmanger