fix duration before expiration