Fixed timestamp check.