Problem with truncate method solved