solved bug for minimum timestamp being out of bounds