fix scanbutton