fixe error on file handling #1