fix sphere_read bug (forgot fclose)