Fixed a bug in copying the temporary data

- it works!