Regression fixed

in some cases layout invalidation context was wrong