fix crash bug when a file is compiled many times.