Fixed the loading order and calling of previously deleted file