Fixed the same bug for record data types