fixed a render bug