Fix error when accepting the expansion.