fixed path for preferences file