fix NullPointerException in EzTask