fixed bug where _data was undefined when serializing a new model