Fix bug causing fork bomb