Few bugfixes caused by https://github.com/xaionaro/clsync/commit/1c28e2530ad48d71ec746ccae39a5a40ad6eb592