Fixing Maximum call stack error when using primus-rooms