Fixing optical flow