fix print length issue