fixed error in all the loading parts of the scripts