Fixes in migration to uuid script