fixed up the empty object save corner case