fixed bug with _.extend