Error when model attributes aren't set