fix the duration