fix wrong timestamp for messages