Fixes bug with stupid permissions.