fixed a ref bug