layout invalidation fix