fix a bug when ser/deser in bindabale base