fix possible duration gen