fixed crashing when error in entry file