Fix bug in __get_min_ts and __get_max_ts. Version 0.0.2.