Fixes bug in disambiguation detection.