Fix $this->xw bug