fixed login page error when no contents for packageResources