copy/paste error when I added the preview rendering views, undefined variable in an error handler

fixes #14