fix a truncated bug