fixed handling of json assets