Workaround for a Pixi.js bug (that will be fixed in upcoming version)