fixed truncate error