fix bugs in xively