fixed bug with purchasing  settlement