fix bug of bitmap