Fix console script