fixed bug about getting depth from parameters in LAIndices