Fix for #74 - 'Invalid relationship' when installing plugin

Fixes Issue #74. Obsoletes PR #70