Fix bug with identifier ranges