fix bug "can not register toolbar button"