Bug fix for settings when switching packages