fix typo in the bagel psuedocode