fix additional bug in sdtoa()