Fix the before_fork.