fixing bug in injection of enum and string type (with herman)