fix fork issue