Fix error dialog, fixes #931 (linux)