fixed require fs bug