fix extend
fix core.extend