fixed purchases saving issue
Merge branch 'master' into develop