fix #119, save triggers an error in updates with no affected rows