Fixed wget and register in script