service singleton not working