Update rules to close unclosed ranges