[Fixed] error 500 on new directory creation