fixed handling of periodDuration parameter