fixed error on bad group