Fix attempt2 to Core input in wrong compile order