fixed #374: Validation of record fields incorrect when records are nested