fix for record wrapper