clearing double render error