fix for Qt 5.1.1 preferences bug