At this else branch there is another error dialog that always display "File" in the strings as the code fixed. Maybe this could be fixed here too.