fixed a bug in conversion to use assets instead of resources.