Fixes 'path is undefined' shape regression