fixed extension check