fix get element issue