fix read pix.