fix for repeat  callback, add test.