Fixes permissions for fetching data