fixing preferences menu