fixed importAssets to only call the callback once