Fix purchase generation