fix undefined node crash