Fixes sorting/filtering in permissions views