Fixes #20

Quick fix to #20. Apparently, recent updates to ranges removed the ability of operating on them as if they were arrays.