Fix regression caused by checking current group when opening contact