Fix fs not defined error.