Fix group id from angularjs