Ionic change the service .factory name and doesn't work

The problem is simple.I have changed the name of the service Chats in tab templates of ionic. I have changed it in the controller too for the correct injection but when I do this the view doesn’t work.Some help ?