fix fetch of single record
fix isDirty for attributes and relationships