fix special input bug