Update of the range functions for periods, but there is an error in the sync when creating an MTATrial