Fixed bug with identity not returning id.