Fixed: range() arg 3 must not be zero