Fixed a bug in migration loading