fix error loading