I can fix this but this is not the real issue. shared_ptr have a bigger issue.