fix search for rectilinear coordinates in common_read.c