I am getting 500 Error when clicking on subscription reference. This happens only after creating a invoice. I am using a COD module for payment.