Fixed an issue with from_top_by_time