Fix deleting of session