Fixed shared_ptr bug in larry executable