fix bug of rendering grister position