fixed some bug for net library