Fix corpus not ready error