                 points = find(heatdata, cur, cur + num - 1, value)
                 for col in points
                     [x, y] = positioning(lng(col), lat(row))
-                    if x != -1 && y != -1
+                    if x != -1 or y != -1
                         context.fillStyle = colorHeat(idx)
-                        context.fillRect(Math.floor(256 + 250 * x), Math.floor(256 + 250 * y), 4, 4)
+                        context.fillRect(Math.floor(256 + 250 * x), Math.floor(256 + 250 * y), 1, 1)
 
     viewer.paint = (positioning, geodata, heatdata) ->
         context.clearRect(0, 0, 512, 512)

                lng = 2 * Math.PI * col / num
                lat = Math.PI * (0.5 - row / num)
                [x, y] = positioning(lng, lat)
                if x != -1 && y != -1
                    pos = row * num + row + col
                    height = heights[pos] / 64


        "#" + hexR + hexG + hexB

    colorHeat = (idx) ->
        r = 128 + idx
        b = 0
        g = 0

