fix some bitmap accuracy issues