Thomasd bug fix

https://github.com/tomas-davidovic/YetAnotherRelogger/commit/8a0194b2c5871f58d7acfc52d74869b8a0c39277