Fixed preferences issue