Fix a server error in file/folder creation