save causes 'object cannot be nil' error