Fixed index accessing problems