Read files bugfix