Fixed bug with adding group