fixed 'from' value if it doesn't start at 0