Added "isRenderContext" flag to avoid instance of check