fixed read custom file couse null pointer problem