fixed a bug with zero-length string fields