fixed expand bug