Fixed sample migration script