fixed a forking bug