fix crash of condition editor