Fixes the problew where the selected stops go outside the viewport. Joel: do check.