Fix precision problem with frequency when editing records; fixes #8