fix nsp bug if array element is an object