fixed button issue in plugin mode