Fix command line script