Move fork detection before bind