Fixing bit flipping bug.