Fixes an issue with checking for the permissions field.