Fix interval calculation to synchronize groups of frames