fix getting index of element key\n fix an indentation bug on parsing raw data