Wrong counting of bitmap references fix.