fix fork escape bug and signup bug