Fixed rendering

Live rendering wasn't working, this should fix it