fix typo bugs in loadData