update preference bug fix