Fix problem with preferred application dialog, closes #14