Fixed a bug in parameter parsing in daemon mode