Fixed bug with duplicates created when updating logs.