fix bug where lazy loaded views are loaded multiple times