fix copy pixels