Fix to npe in directive wfActive