Minor bug fixes (routing, empty logs)