Resolved issue with range