Fix wrong error codes from group creation