fix for client-side rendering, closes #15