Fix a bug causing disabled input to be unchecked