fixed bug in _xmlize_record method