diff --git a/src/Entity.jl b/src/Entity.jl
index 6fa2c7ec8e24cc0622f3f0265e74b032a04d623e..eb7c9013a5b0148c8b4bc91453bde3925db5fe25 100644
--- a/src/Entity.jl
+++ b/src/Entity.jl
@@ -1759,7 +1759,7 @@ Set the remote file path of the given `entity` object.
 """
 function set_remote_path(entity::Ref{_Entity}, path::AbstractString)
     err_code = ccall(
-        (:caosdb_entity_entity_set_file_path, CaosDB.library_name),
+        (:caosdb_entity_entity_set_remote_path, CaosDB.library_name),
         Cint,
         (Ref{_Entity}, Cstring),
         entity,