fix expanded bug