Fix patches for Psi #144

Fixes patches for pull request #144: https://github.com/psi-im/psi/pull/144