new script to fix common record errors.