Fixed fs not being defined error