Bug fix for range . closing tag