fixes for event#repeat_ends_on