fixed bug, delete appointment when appointments are scheduled