fix bitmap factory serde