Use the += operator instead of extend.