correct some bug of BitmapCore