got rid of segmentation fault when trying to modify an item