Fixed a syntax error where type was always group