fix extension matching