Fixed an error that would cause reference fields to display wrong data in Forms