fix behavior in index 0