fix truncate to psr2