can't open preferences panel, fix #2