Fixed typo on renderDelay

Now it works when passing the renderDelay variable!