Fixed a possible error in ContentViewLayoutDecorator