fixed broken migration script