bugfix on straight recognition