Fix timestamp bug when connecting.