solve overwritten matrix A problem
output RANSAC nan fixed