Correct shrine bug (from code restruct)

also correct a little bug in _Log()