Fixed bug where wrong error message would display.