References fix