Fix syntax error that put the group in the success list regardless of success or failure