Remove redundant libs.
Replace transaction.replace with add&&show to save network.