Parser fix for opening a file after an error