Fixed bad copy operation in the client side