Minor changes to fix typo in error handling from last commit.