Fixed groups permissions again. Fixed version api.