Fixed wrong management of preferences files