fix active admin query