fixing the edit of a session