fix refsdecl