fix issue with 500 on payments page