Fix message when correcting invalid keys