course purchase bug fix