Fixes rendering issues for overlays crossing the dateline