hotfix: removeIndexFromArray() was broken