fix for rendering issue #847