Fixed bug in error message.