Fixed a problem with time groups and reaching the end of the links in a sub