Fix corpus creation