Fixed weird rendering on connected frames and some changes to prevent render crashes