input bug fixed