Schedule: Fixed the Null Pointer Exception