Fixed extension check