fixed a small bug in bit planar