fix logmaker.sh