Corrected bug in Extend snippet.