fix wrong tab direction