[Process] fix some typos and refactor some code