Matrix and text(html) problems