Fix for correct maximum capture duration