Bug fixes in Ransac code.