Fixed bug on sales when migrate.