Replace `$defaults` to `$this->defaults`

Fixes issue #2