Fix bug with auto-accept invite feature