angular resource save fix