Fixing bug where it doesn't lets you enter a non-positive integer for
the repeat number.