purchase bug fix