Don't rely on fixRange's side effects

Fixes the errors in #21