Use C-t g instead C-g to switch group