fixed optical flow to get correct detection