Fix for the permissions table