fixed FIXME #2 copied the iriginal boost::shared_ptr instead of creating
a new one.