Revert "Fixed native library class reload issue in diagram"

This reverts commit 955e1a49f63ee172ba98bc5948450428bf5c3e1d.