fixed bug with c++ (string,bool) key/value pair