fix perm toolbar button function (enbug)