fixed button press problem