Fixes schedule delete on server delete

when server is deleted schedule is also deleted