fix rendering with safemode enabled

This slipped in via #78 / #81