fix fly and inv