Typo: range() not being called on supplied data