more robust fix for the asset path problem