a few quick fixes
slight change to pd patch