fix some rend bug