Fix issues with renderOnReady not working