Fix bug in render the tail of the snake.