Fix plugin enabling exec error. Issue #3841

Change-Id: Id0eba493c755cde4e95c6356538b8e6b2fd3b4f2