fix input disabled condition