fixing timing problem with reference fields