Changed allowed_types to allowed_type for submatchers