preferences bug fixed