Fix loading activity events with same timestamp

Fixes #1583