Fix restart issue on linux
fix restart and chat and stuff