Fix bug when linter provides 0 length range