Fixed bug found in unit with the apply extension check.