Fixed function bug with deep extend

Need to make a better one…