[BUGFIX] references inside fce to insert record elements

This should convert the references inside the fce elements to insert records elements.
However, it might need a bit of more refactoring