Fixes "TypeError: Object..has no method 'collapse'