fix typo on extend function

So turns out I was checking out your library and found out this typo. 

I'm wondering why nothing that uses the lib broke on your end as a git blame shown this change dates to Jan 11, but you might need some tests around this feature.