Fixed a bug where the groups ID was being checked as text in some cases.