fix bug that changing compiler does not work