fix bitmap is over 32kb bug