fix refernces