Minor fixes

Two minor fixes.

I'm not sure about the str fix, maybe there's a cleaner way than .str().c_str()