fixed error loading