working fix for issue #9 renderer assert