fix bug that would insert view at wrong index if model index was colleciton.length - 1