Fix issue with repeat missing last execution

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>