fixes #2146 - prevent double render