Fixed segfault when returnAsset is called