Fixes resources loading