Fixing the text display inside boxes