Fixed range bug.