bug fix for disabled state of input