fix get element variable