Edit part of create directory
Edit part of use any PID setting
Fix some careless miss