added some fixes to the ER model