Fixed extend() method
Merge pull request #1 from cferdinandi/fix-extend-method

Fixed extend() method