Fix incorrect error message.