smooth intermediate uniform bug fixed