fixed missing initialization of self.uptime in pendulum