Applied #159 to the renderSync method

Fixes #182