Fix inner_text implementation