Fixed activateclient reading from commandline.