minor fix on plugin define