fix bug in dphi cut