fix a typo while doing copying