fixed a issue with name ref