copy data to fix bug on some systems