deprecated fix

Assigning the return value of new
Merge pull request #14 from shinriyo/patch-12

deprecated fix