fix for $.extend