fixed truncate detection
Merge pull request #34 from piotr1212/master

truncate detection fixed