bug fix at preference pages