fixed after xively changed historical api