fix condition for switch way of withdraw