Fixed error in Automatic Duration