fix the cross line problem