ところがどっこい
tokoroga dokkoi

Expression

1. even so; however; still; whereupon; even though; nevertheless; on the contrary; as a matter of fact; despite

Related to ところが