Fixing fs error