fix a spatial layer index error
Merge pull request #1667 from lyao2/ut_fix3

fix a spatial layer index error