Fixed class not found error due to incompatible method declaration, closes #1557.
Merge pull request #1673 from cmfcmf/plugin-error

Fixed class not found error due to incompatible method declaration