Fix a double render issue