fixed bad typing ref