fix null pointer on workflow listener enable