fixed bug with --nolog