bug in query to get latest managed authorities