Duration directive bugfix