Fixed a wrong exception message.