fix for copytruncate