Fixed extension check.