fix some asset loading problems