Fix issue migration script