fix corpus reader