Fix a bug in the case of multiple tumblelogs