Fixed some bugs with replacement data and data fetching from Excel.