Fixed index error missing first argument