Fix improper button enable states.