Pasted captions with swapped or non-numeric bbox values produced negative or NaN regions, so the editor could not select them. Coordinates are now swapped and clamped to the 0-1000 range from the Ideogram 4 caption schema, and unreadable bboxes keep the non-overlapping grid slot for that element. Saved regions with NaN coordinates are dropped on restore. Co-authored-by: AE <by-ae@users.noreply.github.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com>