Fixed issue in reading html content