fixed bug missing fs require