fixed semantic er in obsgen