fix deletion of expired sessions