Fixed a bug where the wrong errstack was being used.