fixed extends bug