fix bug where extraneous rendering callbacks would be created