Fix false -> shared_ptr implicit cast.