Fixes bug with asset preloading (path must be defined each time)