Fixes to RANSAC