fix input button selection