fixed a native build bug