Fixed range bug.
Fixes