Some more fixes for deleting appointments