fix insertion of views created with <view />