Bug fix for twttToRange