bit manipulation macro fix