Fix a bug that reference table may be dumpped before referenced table

It is not restorable dump.