Fix attempt to Core input in wrong compile order