Fix errors in pantry adding