fix bugs in loading