Add extra checks to duration filter.