Fix bug where missing permissions wasn't detected.