Be defensive on the viewport issue