fixed a few nasty bugs in bit planar kernel