fixed error in getItems