Fix typo errors which caused rollback

aea6e011c13bb183d1bbc74b1f30d240e976ccb7 mentions a typo caused the rollback. I manual review and local tests of the externs brought me to these corrections. However, if this isn't the correct change, can someone chime in with more details?