fix bmp_read