fixing read issue