How do you fix the time machine in Pokemon gold?

you do not fix the time machine

you must carry on with the game and at the right time i think bill comes and he tells you that he fixed the time machine