fix undefined analysis