fix wrong idx in appeariance methods