Fixed truncate issue