fixed issues with purchase