fixed the issue of cafe.extend function.