bug fixed with resource default in prefmanager