Restore the code of native