Fix security check bug on timestamp