fixes incorrect error message.