fix missing ref