Fix shifting of bit sets in computing path phase.