fixed bug when no logdestination specified, and not with -f