Fixed bug with CSV header not matching detail records