Fix OOM in migration that remove leading slash