fix a onrender bug