Fix bugs and improve admingroup