Fixed undefined $output

  * [ ] confirm that $this->lastOutput is the undefined $output
  * [ ] confirm that $this->output is correct coz it's doesn't make sense