Fixing use of negative number for repeat. (fixes #14)