Fix attempt3 to Core input in wrong compile order