fix the redpix error
fix the readpix error