Shared pointer issue - proposed error fix for issue #4