fixed a bug by copy paste