Fix stack overflow bug. https://github.com/johnmccutchan/asset_pack/issues/6