fixed build/ref error