[BUGFIX] Fixes previous change to postrender hook