fix one of the constructor which fails to compile when using unique_ptr (again)