Fixed timeline count bug