Text parsing fix