fixed reading issues