Solved issue 16, truncate bug