$debug and $owned

undefined so set null
Merge pull request #12 from shinriyo/patch-10

$debug and $owned