fix(LogicController): Repairs algorithm for error highlighting
Closes #1