Fixing calculation for finding current quadrilateral