bugfix in SSE2 and SSE4.1 path of grid