Fixing edge issue with trial numbers