diff --git a/src/examples/fundamental_matrix.cpp b/src/examples/fundamental_matrix.cpp
index f540897bdd38f63abd0bb4770184582a5f479eaf..4aefecbc8404ed0b8c4937a2a6a57a31e374d9d5 100644
--- a/src/examples/fundamental_matrix.cpp
+++ b/src/examples/fundamental_matrix.cpp
@@ -135,7 +135,7 @@ int main(int argc, char** argv)
         			if (dist < min_dist)
         				min_dist = dist;
         			if (dist > max_dist)
-        			max_dist = dist;
+        			    max_dist = dist;
         		}
         	}
         	else
@@ -180,8 +180,15 @@ int main(int argc, char** argv)
 
 
         	// Draw RANSAC inliers
-        	cv::drawMatches(image_buffer[image_buffer.size()-2], keypoints_1, image_buffer.back(), keypoints_2, inlier_matches, img_matches,
-        			cv::Scalar::all(-1), cv::Scalar::all(-1), std::vector<char>(), 0); //cv::DrawMatchesFlags::NOT_DRAW_SINGLE_POINTS );
+        	cv::drawMatches(image_buffer[image_buffer.size()-2], // before the last img
+        	                keypoints_1,
+        	                image_buffer.back(), // last img
+        	                keypoints_2,
+        	                inlier_matches,
+        	                img_matches,
+        	                cv::Scalar::all(-1),
+        	                cv::Scalar::all(-1),
+        	                std::vector<char>(), 0); //cv::DrawMatchesFlags::NOT_DRAW_SINGLE_POINTS );
 
         	// Show detected matches
         	imshow("Feature tracker", img_matches);