fixed error in getitem