Fix bug on process forking.