Fix record validation