Resolved! An issue that attribute index value of layers created by API is different from layer setting dialog