fix stupid truncation bug