fix double render