Fix reference to internal records