fixbug on `extend` example