fixed a copy bugs