Bug fix to PayetteError that was causing some tests to fail