fixes 500s, which were thrown on access denied exceptions