reset perms of module def
reset perms of module def