fixed bit flipping garbage