fixed button detection