Fixed bug when cloning entity on pool resize