Fix issue when we specify duration twice.