fix a bug of terrain's index buffer