Fixed a bug that occurs when loading data.