Fixes to overlay_dimensions method