More repeat() bug fixes.