fixed bug in bit plane processing
checked something in by mistake