fix extends bug