Fix calls to load resource and load binary resource