Fix open function arity