Bug fix for left truncation in stpm2 and pstpm2