Fix error handling for saveItems