Fixed bug with the homography