=fix condition generation bug for dynamic condition