Added a minimum value of 1 for grid when integers are forced

Added a Math.max() wrap around the Math.round() to make sure the step is at least 1 when integers are forced.