Fix bug causing to load non-existing assets.