Fix catch error if file dosen't exist