change compile order to avoid failure