fix Fatal Error: Unauthorized issue due to accessControl