fixed typos and removed unnecessary FileStream call.