Reading of files corrected