Fixed the NullPointerException hopefully

In Appointment and Daily