#584 fixed, fixed of fopen is checked now