Made generators working in merged if inside merged if case