Corrected convex check bug.