avoid double render