fix for preferences bug on 5.1.1