fixed error in loading