Fixed error in non-existent homedir argument.
Fixed index value translation bug.