fix truncation error