Fixed wrong resource api implementation for $save()