Fixed migrate command.