Fixed bug getting main text