fix bug where multiple views exist for the same model