partial fix of bug with (a|b+d)+