Fixed log.sh