Trying to solve the render bug