Fix wrong error message.