Fix regression in ex