Fixed bad timestamp compare