fixed small bug with text = doc.read()