fix render being called far too often