Fix duplicate main view calls