Fix left truncation bug