fix double render bug