fix bug of bitmap.