Fixed the button ID drift problem in computer sleep/resume.