Endogeneity in Spatial Models