Fix saveItem method.