fixed error in unloadData