bugfix clear perm cache