fix immediate rendering issue