Fixing framwork idService nullPointerException