diff --git a/core/server/proxy/src/main/java/alluxio/proxy/s3/S3RestServiceHandler.java b/core/server/proxy/src/main/java/alluxio/proxy/s3/S3RestServiceHandler.java
index <HASH>..<HASH> 100644
--- a/core/server/proxy/src/main/java/alluxio/proxy/s3/S3RestServiceHandler.java
+++ b/core/server/proxy/src/main/java/alluxio/proxy/s3/S3RestServiceHandler.java
@@ -359,7 +359,7 @@ public final class S3RestServiceHandler {
         if (objectPath.endsWith(AlluxioURI.SEPARATOR)) {
           // Need to create a folder
           try {
-            mFileSystem.createDirectory(new AlluxioURI(objectPath));
+            fs.createDirectory(new AlluxioURI(objectPath));
           } catch (IOException | AlluxioException e) {
             throw toObjectS3Exception(e, objectPath);
           }
Fix wrong owner when creating directory object in S3 API



pr-link: Alluxio/alluxio#<I>
change-id: cid-e<I>ba7db<I>c<I>c<I>e<I>