Fixing deep extend.