Bug when try to dispose a session