Fixed bug in focusRange()