Added missing check on plugin enabled