fixed reading file from content