fixed major glitches
Merge branch 'fix-TwoOpt' into develop