Two bug fixes

Hi - noticed two bugs in pygmalion; here are the fixes :-)