plugin: fixed checks.