fix bug on file not found