fix serialisation problem of window timestamps