fixed dump file not truncated