correct duration in yaml