updated script with latest inner rendering fix