Fixed a bug in the shortcode generator regarding select field values