fix the ref name wrong issue