Addressed issue where scopes would vary based on cursor location and selection.