Fix copy size

To prevent template error when copy size could not be determined