Fix bug in case module.url is not defined during migration