Fixed issue with incorrect resources loading