Update dimension checking to avoid .id- selectors