fix for reference field referencing itself