bugfixes: paymentSchedules (NPEs etc.).