Fix for error with grabbing groups